import { errorCode } from './error-code'

export function formatError(err) {
    const message = errorCode[err.status] || ''
    return {
        code: 204,
        message: message
    }
}